<view class="padding flex flex-direction">
    <button bindtap="chooseImage" class="cu-btn  bg-cyan  lg " style="margin-bottom:15rpx;">
		选择图片</button>
    <button bindtap="saveAll" class="cu-btn  bg-cyan lg" wx:if="{{isChoose}}">
		保存所有图片</button>
</view>
<view style="height:50vh;display: flex;flex-direction: column;align-items: center;">
    <image class="image" hidden="{{isChoose==true?false:true}}" src="{{img}}" style="width:{{showInfo.width}}px;height:{{showInfo.height}}px;"></image>
    <view class="choose" hidden="{{isChoose==true?false:true}}" style="width:{{showInfo.width}}px;height:{{showInfo.height}}px">
        <view bindtap="previewImage" class="choose-module {{index%2==0?'choose-module-odd':''}}" data-index="{{index}}" style="width:{{showInfo.width/3}}px;height:{{showInfo.height/3}}px;line-height:{{showInfo.height/3}}px;" wx:for="{{[0,1,2,3,4,5,6,7,8]}}">{{index+1}}</view>
    </view>
</view>
<view style="height:{{fixedHeight}}px;width:100%"></view>
<adComponent wx:if="{{ad}}" ad="{{ad}}"/>
<canvas canvasId="{{canvasInfo.id}}" class="canvas" style="width:{{canvasInfo.width}}px;height:{{canvasInfo.height}}px;position:absolute;top:{{showInfo.height+systemInfo.height}}px;left:-99999px;"></canvas>
